<?php
//include("Frodo.lib.php");
require_once("core/Frodo.lib.php");
Frodo::import("com.frodo.core.Application");




class NewApp extends Application {
	
	private $c=1;
	
	public $b1;
	public $field1;
	public $field2;
	public $label1;
	
	public $path=__FILE__;
	
	public function main()
	{
		$this->b1->addEventListener(Event::$BUTTON_CLICK,new EventListener($this,"b1_Press"));
		$this->label1->value="sdf";
	}
	
	public function b1_Press()
	{
		$this->b1->setValue("afasdf");
		//echo "sdfasl;kdjf a;sldkf";
	}

	public function b2_Press()
	{
		$this->c--;
	}
}


//Frodo::create("NewApp");

Application::run("NewApp",__FILE__);
?>

<html xmlns:frodo="http://www.cozzy.net/frodo/" xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>sdf</title>
		<!--<frodo:master name="masterPage1" />-->
	</head>
	<body>
		<div>
			<frodo:button name="b1" value="+"  />
			<frodo:canvas name="c1" value="sdf">
				<div><span>zzz</span></div>
			</frodo:canvas>
		</div>
	</body>
</html>